import request from '@/utils/request'
export function returnList(params) {
  return request({
    url:'/shop/return/list',
    method:'get',
    params:params
  })
}

export function returnDetail(params) {
  return request({
    url:'/shop/return/detail',
    method:'get',
    params:params
  })
}
//同意退款
export function agreeRefund(data) {
  return request({
    url:'/shop/return/agreeRefund',
    method:'post',
    data:data
  })
}
//拒绝退款
export function refusedRefund(data) {
  return request({
    url:'/shop/return/refusedRefund',
    method:'post',
    data:data
  })
}
//同意退货
export function postAgreeReturnGoods(data) {
  return request({
    url:'/shop/return/agreeReturnGoods',
    method:'post',
    data:data
  })
}

//物流查询
export function getExpressList(params) {
  return request({
    url:'/shop/return/getExpressList',
    method:'get',
    params:params
  })
}

//确认退款
export function postAgreePay(data) {
  return request({
    url:'/shop/return/agreePay',
    method:'post',
    data:data
  })
}

//导出退款
export function exportExcel(params) {
  return request({
    url:'/shop/return/exportExcel',
    method:'get',
    params:params
  })
}
